package com.rockk.generator.md.dto;

public class ColumnMeta {
	
	private String name;
	private String type;
	private String isNullable;
	private String isPrimaryKey;
	private String defaultValue;
	private String remarks;
	
	public String getName() {
		return format(name);
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getType() {
		return format(type);
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getIsNullable() {
		return format(isNullable);
	}
	public void setIsNullable(String isNullable) {
		this.isNullable = isNullable;
	}
	public String getIsPrimaryKey() {
		return format(isPrimaryKey);
	}
	public void setIsPrimaryKey(String isPrimaryKey) {
		this.isPrimaryKey = isPrimaryKey;
	}
	public String getDefaultValue() {
		return format(defaultValue);
	}
	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}
	public String getRemarks() {
		return format(remarks);
	}
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String format(String val){
		if(val == null)
			return "";
		return val;
	}
}
